﻿@model DBTramite.BussinesEntities.T_Documento

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>T_Documento</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.nroexpediente)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nroexpediente)
            @Html.ValidationMessageFor(model => model.nroexpediente)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.expgenerador)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.expgenerador)
            @Html.ValidationMessageFor(model => model.expgenerador)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nrodocumento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nrodocumento)
            @Html.ValidationMessageFor(model => model.nrodocumento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fechaingreso)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fechaingreso)
            @Html.ValidationMessageFor(model => model.fechaingreso)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.asunto)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.asunto)
            @Html.ValidationMessageFor(model => model.asunto)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.folios)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.folios)
            @Html.ValidationMessageFor(model => model.folios)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.observacion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.observacion)
            @Html.ValidationMessageFor(model => model.observacion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.codtipodocumento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.codtipodocumento)
            @Html.ValidationMessageFor(model => model.codtipodocumento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.codemisor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.codemisor)
            @Html.ValidationMessageFor(model => model.codemisor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.id_dep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.id_dep)
            @Html.ValidationMessageFor(model => model.id_dep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.rut)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.rut)
            @Html.ValidationMessageFor(model => model.rut)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.id_old)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.id_old)
            @Html.ValidationMessageFor(model => model.id_old)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nroexpinterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nroexpinterno)
            @Html.ValidationMessageFor(model => model.nroexpinterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.telefono)
            @Html.ValidationMessageFor(model => model.telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fechasalida)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fechasalida)
            @Html.ValidationMessageFor(model => model.fechasalida)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.permanenciamax)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.permanenciamax)
            @Html.ValidationMessageFor(model => model.permanenciamax)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prioridad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prioridad)
            @Html.ValidationMessageFor(model => model.prioridad)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.recepcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.recepcion)
            @Html.ValidationMessageFor(model => model.recepcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.recepcion_old)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.recepcion_old)
            @Html.ValidationMessageFor(model => model.recepcion_old)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.codtipotramite)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.codtipotramite)
            @Html.ValidationMessageFor(model => model.codtipotramite)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.codestado)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.codestado)
            @Html.ValidationMessageFor(model => model.codestado)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.codexpinicial)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.codexpinicial)
            @Html.ValidationMessageFor(model => model.codexpinicial)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.interno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.interno)
            @Html.ValidationMessageFor(model => model.interno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fecha_audit)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fecha_audit)
            @Html.ValidationMessageFor(model => model.fecha_audit)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
